﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ErrorLogDetail : System.Web.UI.Page
{
    public string errorname;
    public string value;
    public string content;
    public string filePath;
    public string checktime;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["AdminName"] == null)
            Response.Redirect("login.aspx");

        if (!this.Page.IsPostBack)
        {
            int id = int.Parse(Request.QueryString["ErrorLogId"]);
            DAL.ErrorLogDALs errorlogdas = new DAL.ErrorLogDALs();
            Entities.ErrorLog errorlog = errorlogdas.GetByID(id);
            filePath = errorlog.FilePath;
            checktime = errorlog.Checkintime.ToShortDateString() + " " + errorlog.Checkintime.TimeOfDay.ToString(); ;
            errorname = errorlog.Title;
            content = errorlog.Content;
        }

    }
}
